package notes;

public class NoteWithPicture extends Note {
	
	private String uriPath;
	
	public static Note createNewNote(String title, String text, String time, String uriPath) {
		NoteWithPicture note = new NoteWithPicture(title, text, time, uriPath);
		if(note.getText() != null && note.getTitle() != null && uriPath.length() != 0) {
			return note;
		}
		
		return null;
	}
	
	protected NoteWithPicture(String title, String text, String time, String uriPath) {
		super(title, text, time);
		
		this.uriPath = uriPath;
	}
	
	public String getPicturePath() {
		return uriPath;
	}

}
